using MultiAgentsShared;

using static MultiAgentsClient.Manager.NavigationManager;
using static MultiAgentsClient.Manager.UserInfoManager;

namespace MultiAgentsClient.Presentation;

public partial record NavigationPanelModel
{
    private readonly IEventBus eventBus;

    public NavigationPanelModel()
    {
        eventBus = EventBus.Instance;
    }

    public void LogOut()
    {
        eventBus.Publish(new NavigationCommand(typeof(LoginPage)));
        eventBus.Publish(new LogoutCommand());
    }
}
